public class Java21 {
    public static void main(String[] args) {
        int all=0,accumulate=1;
        for(int i=1;i<21;i++){
            accumulate*=i;
            all+=accumulate;
        }
        System.out.println(all);
    }
}
